<template>
  <div class="content-manage">
    <el-scrollbar style="width: 100%;">
      <div class="content-manage-container">
        <ContentCrumb />
        <ContentList v-if="route.query.type == 1 || route.query.type == 2" />
        <div v-else>
          <el-empty description="当前模型暂不支持预览" />
        </div>
      </div>
    </el-scrollbar>
  </div>
</template>

<script setup>
import { useRoute } from 'vue-router'
import ContentList from '@/views/content/manage/ContentList'

const route = useRoute()
</script>

<style lang='scss' scoped>
.content-manage {
  flex: 1;
  height: calc(100vh - 65px);
  width: 0;
  min-width: 0;
  
  .content-manage-container {
    flex: 1;
    padding: 10px;
  }
}
</style>